#include "stm8s.h"
#include "stdbool.h"

#define KEY1_PORT GPIOD
#define KEY1_PIN GPIO_PIN_2
#define KEY1 GPIO_ReadInputPin(KEY1_PORT,KEY1_PIN)

#define Infrared_PORT GPIOD
#define Infrared_PIN GPIO_PIN_3
#define Infrared GPIO_ReadInputPin(Infrared_PORT,Infrared_PIN)


extern uint8_t PressTimes;
extern bool TimeOut;

void Init_Button(void);
